<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    let array=[
    {"num":"20031210205","sex":"男","name":"黄大名","date":"2001-10-16T16:00:00.000+00:00","dorm":1024,"password":"1111"}
    ]
    let json=JSON.parse(JSON.stringify(array))//转换成立json数组,里面只有一个json元素
    console.log(json[0].name)//一定要是数据对象，不是一个纯粹的字符串才行，一般后台传递的json格式的数据就可以
</script>
</html>